﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace StevensReceipts.Domain
{
    /// <summary>
    /// the tax rate for tax return
    /// 15% GST on income
    /// 15% GST on expense
    /// Zero Rated
    /// No GST
    /// </summary>
    public class TaxRate : IEntity
    {
        [Key]
        public int Id { get; set; }

        [Required]
        public double Rate { get; set; }

        [StringLength(50)]
        public string Name { get; set; }

        [StringLength(100)]
        public string Description { get; set; }


        public DateTime? Created { get; set; }

        public DateTime? Modified { get; set; }

        public TaxRate()
        {
            Created = DateTime.Now;
        }
    }
}